<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
	<title>珠峰培训 - 微信：18310612838</title>
	<!-- IMPORT CSS -->
</head>

<body>
	<iframe id="iframe" src="http://127.0.0.1:1002/MESSAGE/B.html" frameborder="0" style="display: none;"></iframe>
	<!-- IMPORT JS -->
	<script>
		iframe.onload = function () {
			iframe.contentWindow.postMessage('珠峰培训', 'http://127.0.0.1:1002/');
		}

		//=>监听B传递的信息
		window.onmessage = function (ev) {
			console.log(ev.data);
		}
	</script>
</body>

</html>